﻿
using SqlSugar;
using System.Text.Json.Serialization;


namespace VueAdminService.DTO
{
    [SugarTable("User")]
    public class UserDTO
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string UserId { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string Avatar { get; set; } = "default.png";
        /// <summary>
        /// 账号
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码，md5加密
        /// </summary>
        [JsonIgnore]
        public string Password { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Tel { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Bak { get; set; }
        /// <summary>
        /// 状态,根据数据字典判断状态 code='YHZT'
        /// </summary>
        public string Status { get; set; } = "01";		
		
	}
}
